package system;

import book.BookList;

public class BorrowOperation implements IOperation {
    @Override
    public void work(BookList bookList) {
        System.out.println("借阅图书");
        System.out.println("输入你要借阅的图书名");
        int ret = bookList.findBook() ;
        if (ret == -1){
            System.out.println("找不到你要借阅的书籍");
        }else{
             bookList.getBook(ret);
            System.out.println("借阅成功");
        }
    }
}
